package com.example.robertluozizhao.java.reflect;

/**
 * @author luo_zi_zhao
 * @version V1.0 当前版本描述信息
 * @FileName com.example.robertluozizhao.java.reflect
 * @date 2019/11/23 14:15
 */

public class Apple extends Fruit {
    private String area;

    public Apple() {
    }

    public Apple(float price, String name, String area) {
        super(price, name);
        this.area = area;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Override
    public String toString() {
        return "Apple{" +
                "price=" + price +
                ", name='" + name + '\'' +
                ", area='" + area + '\'' +
                '}';
    }
}
